package campus.aiit.ssl.dao;

import campus.aiit.ssl.domain.model.DeviceModel;
import campus.aiit.ssl.manage.custom.dao.BaseDao;
import campus.aiit.ssl.manage.custom.dao.DaoResultCheck;

/**
 * @author ihaokun
 * @date 2019/12/3 15:16
 */
public interface DeviceModelDao extends BaseDao<DeviceModel> {
  @Override@DaoResultCheck
  int deleteByPrimaryKey(Long id);

  @Override@DaoResultCheck
  int updateByPrimaryKeySelective(DeviceModel record);

  @Override@DaoResultCheck
  int insertSelective(DeviceModel record);

  Long selectIdByUniqueCombine(String brandName, String modelName);

  DeviceModel[] selectALl();

  String[] selectBrands();

  DeviceModel[] selectByBrandName(String name);
}